package com.example.mall.search.mapstruct;

import com.example.mall.search.builder.Person;
import com.example.mall.search.mapstruct.dto.PatientDto;
import com.example.mall.search.mapstruct.pojo.Patient;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface PatientMapper {

    PatientMapper INSTANCE = Mappers.getMapper(PatientMapper.class);

    @Mapping(source = "patient.sexH", target = "sex")
    PatientDto patientToPatientDto(Patient patient);

}
